<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
.box {
  width: 300px;
  height: 300px;
  border: 1px solid #000;
}
</style>
<body>
    <div id="app">
      <!-- :style="{样式名: 值,}" -->
     <div class="box" :style="{backgroundColor: 'red', color: 'green'}">
      我是个盒子
     </div>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <script>
      const app = new Vue({
        el: '#app',
        data: {
          
        },
        methods: {
          
        }
      })
    </script>
</body>
</html>